package com.foreknow.demo2.Test2;

public class ClassB implements InterfaceA {
    @Override
    public int method(int n) {
        int sum = 1;
        if (n >= 1){
            for (int i = 1;i <= n;i++){
                sum *= i;
            }
        }
        return sum;
    }
}
